home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Electronic Messages / USEnet Digests / USEnet Vol. 3 / USEnet 3.084 < prev    next >
Encoding:
Internet Message Format  |  1988-04-08  |  24.1 KB  |  [TEXT/ttxt]

  1. Date: Fri 16 Oct 87 19:09:27-GMT
  2. From: Jeff Shulman <SHULMAN@SDR>
  3. Subject: Usenet Mac Digest V3 #84
  4.  
  5. Usenet Mac Digest     Friday, October 16, 1987       Volume 3 : Issue 84 
  6.  
  7. Today's Topics:
  8.      Re: Poor Mac Design Philosophy
  9.      Re: Possible LSC improvements
  10.      Re: Intermail owners take note/Intermail buyers should read
  11.      Re: Poor Mac Design Philosophy
  12.      Re: editing default window size
  13.      Re: Hypercard
  14.      Re: Warning: use of "Pyro" and Opcode's MIDIMAC Sequencer
  15.      Optical Design programs for the Mac ????
  16.      Re: What does access memory manager' mean?
  17.      Re: Simple Hypercard question
  18.      Re: INIT 31 should be enhanced!
  19.      Re: Circuit board layout with penplotter output for Mac?????
  20.      Sony 1302 Monitor Adjustments
  21.      Curses emulation for Mac
  22.      Re: Hypercard again (radio button)
  23.      Re: dialogues during boot?
  24.      KMAPs and KCHRs
  25.      Looking for Common Lisp for the Mac
  26.      Bug in Microsoft EXCEL Square Root
  27.      NetTrek, MazeWars, and Zones
  28.      Re: Mac II Production Stopped?
  29.  
  30. ---------------------------------------------------------------------- 
  31.  
  32. From: avjewe@cvl.umd.edu (Andrew V Jewell)
  33. Subject: Re: Poor Mac Design Philosophy
  34. Date: 13 Oct 87 11:52:32 GMT
  35. Organization: Center for Automation Research, Univ. of Md.
  36.  
  37.  
  38. The finder has a SPECIAL menu right? So, why doesn't it include items
  39. like
  40.    REBUILD DESKTOP and
  41.    RESET PARAMETER RAM
  42.  
  43. It seems this would be amazingly easy to implement, easier to document
  44. and N times more mac-like
  45.  
  46.  
  47.                                  Andy Jewell
  48.  
  49.  
  50.  
  51.            Am I missing something obvious here or what?
  52.  
  53.  
  54. ------------------------------
  55.  
  56. From: gardner@prls.UUCP (Robert Gardner)
  57. Subject: Re: Possible LSC improvements
  58. Date: 13 Oct 87 17:35:50 GMT
  59. Organization: Philips Research Labs, Sunnyvale, California
  60.  
  61. The RAM cache sure gets a lot of bad 'press'. I have used it with LSC
  62. very happily for a LONG time and have survived MANY crashes with it with
  63. absolutely NO loss of data. There was a lot of scare about it for awhile
  64. because it's not write-thru. I don't have any official dope on this, but
  65. from what I have been able to discover (mostly by just watching disk
  66. activity), the cache is flushed to disk whenever FlushVol() is called.
  67. If this is true then the RAM cache is no less safe than any- thing else
  68. since the normal disk buffers are also only flushed when FlushVol is
  69. called. IM recommends that you call FlushVol whenever you close a file
  70. or after a Save, and I suspect LSC does this before Running your
  71. application. (I have LSC set up to do auto saves before a Run.) I
  72. believe ExitToShell and perhaps a few other routines also call FlushVol.
  73.  
  74. In summary, I have yet to figure out why the RAM cache is more dangerous
  75. than the standard Mac disk-buffering. I have used it successfully for
  76. nearly a year now and have never lost data because of it, though I've
  77. crashed many, many times in many strange and interesting ways.
  78.  
  79. Robert Gardner
  80.  
  81.  
  82. ------------------------------
  83.  
  84. From: singer@endor.harvard.edu (Richard Siegel)
  85. Subject: Re: Intermail owners take note/Intermail buyers should read
  86. Date: 14 Oct 87 00:19:44 GMT
  87. Organization: THINK Technologies, Inc., Bedford, MA
  88.  
  89.     It is true that we don't site-license InBox (or any of our other
  90. products for that matter), however, we do offer quantity discounts on
  91. our various products. I don't know the terms exactly (I'm customer
  92. support for compilers :-)), but if you call Ellen Neavitt at
  93. 1-800-64-THINK she will give you the details. And mention my name when
  94. you call... :-)
  95.  
  96. >
  97. >Is there anyone from Inbox out there who will take pity on a distraught
  98. >person who, besides his own research work, manages a network of 32 Macs, a
  99. >couple file servers, gateway boxes, and on and on.
  100.  
  101.     InBox version 2.0 will work concurrently with AppleShare and TOPS, and
  102. also works nicely with bridges (we have two Message Centers with two
  103. Hayes InterBridges) and with all flavors of Macintosh and network (our
  104. net is PhoneNet based).
  105.  
  106.         --Rich
  107.  
  108. **The opinions stated herein are my own opinions and do not necessarily
  109. represent the policies or opinions of my employer (THINK Technologies, Inc).
  110.  
  111. * Richard M. Siegel | {decvax, ucbvax, sun}!harvard!endor!singer    *
  112. * Customer Support  | singer@endor.harvard.edu                *
  113. * THINK Technologies, Inc.  (No snappy quote)                       *
  114.  
  115. ------------------------------
  116.  
  117. From: singer@endor.harvard.edu (Richard Siegel)
  118. Subject: Re: Poor Mac Design Philosophy
  119. Date: 14 Oct 87 00:25:32 GMT
  120. Organization: THINK Technologies, Inc., Bedford, MA
  121.  
  122.     Because special system-level functions like that are functions that are
  123. only needed in specific conditions, i.e. when the Desktop file gets
  124. trashed or when the Parameter RAM gets corrupted -- these are both
  125. things that in general aren't supposed to happen.
  126.  
  127.     I realize that for a Mac Hacker these functions are handy, but for a
  128. novice user they would be only confusing and somewhat threatening.
  129.  
  130. >It seems this would be amazingly easy to implement,
  131.  
  132.     This is true, but see above.
  133.  
  134. >easier to document
  135.  
  136.     Easier to document than WHAT? It's equally trivial to document either
  137. type of function.
  138.  
  139. >and N times more mac-like
  140.  
  141.     Again, more Mac-Like than what? The Finder is a program that has no
  142. analog anywhere in the personal computer industry. True, there are
  143. Mac-alike "desktop" things like Windows and GEM, but note what I just
  144. said: the Finder is the prototype for graphical operating-system
  145. interfaces.
  146.  
  147. >
  148. >                                 Andy Jewell
  149.  
  150.         --Rich
  151.  
  152.  
  153. ------------------------------
  154.  
  155. From: oster@dewey.soe.berkeley.edu (David Phillip Oster)
  156. Subject: Re: editing default window size
  157. Date: 13 Oct 87 19:29:16 GMT
  158. Organization: School of Education, UC-Berkeley
  159.  
  160. Apple feels that it is important to let the user choose the settings for
  161. new windows.
  162.  
  163. If you look at the section of Apple's User Interface Guidlines where
  164. MultiFinder is discussed, you will see that Apple now expects
  165. applications programs to store, with each document, where it was on the
  166. screen. That way, when the user opens the document again, it will show
  167. up on the same place on the screen. (The application has to check that
  168. window size and position are reasonable for the current display, since
  169. the user may have created the file on a machine with a big display and
  170. moved it to a machine with a small display.) The current version of the
  171. Finder does this.
  172.  
  173. In my programs, I give each of my documents a resource: Type=WIND
  174. ID=128, and update it each time the user saves the file. I'd like to see
  175. this convention catch on.  When the user creates a new document, its
  176. position comes from a resource Type=WIND ID=128 in the program itself.
  177. This resource gets updated whenever the user does a Close or Save. When
  178. the user wants a new window, this window gets used for its initial
  179. position. (If there already is a window on that spot, I adjust the
  180. position of the new window slightly before showing it to the user.)
  181.  
  182. My newer programs are compatible with networks and multiple users. They
  183. keep special files, called Stationery Pads (as per the tech note on
  184. AppleShare compatiblity) that hold settings like the initial position,
  185. font, size, and even contents of documents. If you open a stationery
  186. pad, you get an new, untitled copy of the pad that is a document. (like
  187. tearing the top sheet off a real, paper pad.)  To change the setting of
  188. a stationery pad, you must explicitly set up a document the way you want
  189. and do a "Save As Stationery Pad."
  190.  
  191.  
  192. All of this is detailed in my article: How to Write a TEXT editor, part
  193. II, Data File compatibility, coming soon.
  194.  
  195. --- David Phillip Oster            --A Sun 3/60 makes a poor Macintosh II.
  196. Arpa: oster@dewey.soe.berkeley.edu --A Macintosh II makes a poor Sun 3/60.
  197. Uucp: {uwvax,decvax,ihnp4}!ucbvax!oster%dewey.soe.berkeley.edu
  198.  
  199. ------------------------------
  200.  
  201. From: paulm@nikhefk.UUCP (Paul Molenaar)
  202. Subject: Re: Hypercard
  203. Date: 13 Oct 87 15:55:09 GMT
  204. Organization: Nikhef-K, Amsterdam (the Netherlands).
  205.  
  206. In article <253@nikhefk.UUCP> paulm@nikhefk.UUCP (Paul Molenaar) writes:
  207. >I might be mistaken (will check just after I log off... HC hates the
  208. >Switcher) but typing 
  209. >
  210. >Show all card fields
  211. >
  212. >in the message box might do the trick. I recall reading something about
  213. >that in the Help Stack.
  214. >
  215. >    Paul Molenaar
  216. >
  217.  
  218. I was wrong, sorry. I couldn't find a way of showing al card fields.
  219.  
  220. But I do have another question for the HyperCard public (let's hear it
  221. for a comp.lang.hypercard section! [no moderation plz. Do that in a
  222. comp.lang.hypercard.binaries section ;)])
  223.  
  224. I added my own cursor to a stack (in fact, I ripped another program :)
  225. and succeeded in bringing it on the screen with 'set cursor to 260' (260
  226. being the id of this cursor). What I would like is that cursor being
  227. shown when the user moves the mousepointer over an information button.
  228. Like: 'if the mouseH > 28 and the mouseV > 36 and the mouseH < 121 and
  229. the mouseV < 130 then set cursor to 260'. This works only partly, as
  230. HyperCard steals the idle time in which I perform this operation. The
  231. cursor is switched between the browse tool and my custom cursor.
  232.  
  233. Anyone any idea to prevent HyperCard from changing the cursor?
  234.  
  235.  
  236.         Paul Molenaar
  237.  
  238.     "Just checking the walls"
  239.         - Basil Fawlty -
  240.  
  241. ------------------------------
  242.  
  243. From: rusty@velveeta (rusty wright)
  244. Subject: Re: Warning: use of "Pyro" and Opcode's MIDIMAC Sequencer
  245. Date: 13 Oct 87 21:00:32 GMT
  246. Organization: UC Berkeley Math Department
  247.  
  248. I had trouble with Pyro on an SE with switcher.  Once I removed Pyro
  249. from the system folder it started working again.
  250.  
  251. --------------------------------------
  252.     rusty c. wright
  253.     rusty@weyl.berkeley.edu ucbvax!weyl!rusty
  254.  
  255.  
  256. ------------------------------
  257.  
  258. From: seitzer@noao.arizona.edu (Pat Seitzer)
  259. Subject: Optical Design programs for the Mac ????
  260. Date: 13 Oct 87 20:09:39 GMT
  261. Organization: noao
  262.  
  263. Anyone know of any general purpose optical design programs for the
  264. Macintosh?  I've seen several advertised for the IBM PC, but nothing for
  265. the Mac.  
  266.  
  267. email to me - I'll summarize for the net if any interest (and I
  268. apologize if this has been discussed here recently).
  269.  
  270. thanks in advance,
  271.  
  272. Pat Seitzer, National Optical Astronomy Observatories, Tucson AZ, 602-325-9387
  273. UUCP: {arizona,decvax,hao,ihnp4}!noao!seitzer  
  274.     or  uunet!noao.arizona.edu!seitzer 
  275. Internet: seitzer@noao.arizona.edu    
  276. SPAN/HEPNET: 5356::SEITZER or DRACO::SEITZER
  277.  
  278. ------------------------------
  279.  
  280. From: tecot@apple.UUCP (Ed Tecot)
  281. Subject: Re: What does access memory manager' mean?
  282. Date: 13 Oct 87 22:39:57 GMT
  283. Organization: Apple Computer Inc., Cupertino, USA
  284.  
  285. In article <1319@cartan.Berkeley.EDU> lippin@spam.UUCP (tom lippincott)
  286. writes:
  287. >But wait, there's more!
  288. >
  289. >Even calls that don't change the heap can cause problems -- most quickdraw
  290. >routines, in particular, are not reentrant.  If you make a quickdraw call
  291. >while the main program is making one, you'll probably mess up that call.
  292. >(I've tried this.  The bugs are Mostly Harmless, but there.)
  293.  
  294. No, that's not true.  What you are experiencing is completely different:
  295.  
  296. Someone else has already explained that an interrupt can interrupt just
  297. about anything, including heap compaction.  Of course you don't want to
  298. make any memory manager calls at this time, since that could cause heap
  299. corruption. However, you also don't want to reference ANY unlocked
  300. relocatable blocks, as they could be "in transit".
  301.  
  302. Quickdraw regions are by definition relocatable.  So it follows that you
  303. don't want to make any quickdraw calls that affect regions.  However,
  304. every grafPort contains two regions, a clipRgn and a visRgn.  So, you
  305. don't want to make any quickdraw calls that uses a grafPort.  It turns
  306. out that only two useful calls remain:  CopyBits and CopyMask.  But
  307. beware:  These calls check to see if the destination (pix or bit)Map is
  308. the same as that of the current grafPort, and if so, uses the grafPort's
  309. clipping.  So, in effect, these calls are only useful if the destination
  310. is an offscreen (pix or bit)Map.
  311.  
  312. In summary, QuickDraw is reentrant, but it's dependency upon the memory
  313. manager precludes its use during interrupt time.
  314.  
  315.                         _emt
  316.  
  317.  
  318. ------------------------------
  319.  
  320. From: clubmac@runx.ips.oz (Macintosh Users Group)
  321. Subject: Re: Simple Hypercard question
  322. Date: 12 Oct 87 17:49:17 GMT
  323. Organization: RUNX  Un*x Timeshare. Sydney, Australia.
  324.  
  325. In article <6444@apple.UUCP> keith@apple.UUCP (Keith Rollin) writes:
  326. >It seems possible to me that Hypercard keeps its startup stack name in a
  327. >resource somewhere. If not, then there are 2 ways that come immediately to
  328.  
  329. Yes Keith, the STR# resource "Misc", ID=1001, has as it's first string
  330. the name of the startup stack.
  331.  
  332. Jason Haines, President
  333.  
  334. Club Mac Macintosh Users Group, Sydney, Australia
  335. Phone Home: +61-02-73-4444
  336. Snail:      Box 213, Holme Building, Sydney University, NSW, 2006, Australia
  337. ACSnet:     clubmac@runx.ips.oz       ARPA:   clubmac%runx.ips.oz@seismo.css.gov
  338. UUCP:{enea,hplabs,mcvax,prlb2,seismo,ubc-vision,ukc}!munnari!runx.ips.oz!clubmac
  339.  
  340. ------------------------------
  341.  
  342. From: dbw@sdcsvax.UCSD.EDU (David B. Wollner)
  343. Subject: Re: INIT 31 should be enhanced!
  344. Date: 14 Oct 87 03:56:47 GMT
  345. Organization: U.C. San Diego
  346.  
  347. Before everyone starts debating the "correct" way of enhancing INIT 31,
  348. it seems that a new init from CE Software should solve the problem.  Its
  349. name is AASK. It brings up a list of inits in the system folder, and
  350. allows the user to choose which to run.  I have not had a chance to play
  351. with this one, so treat it as a rumor until you talk to CE software.
  352.  
  353.     CE Software
  354.     801 73rd St.
  355.     Des Moines, IA 50312
  356.     (515)224-1995
  357.  
  358. As per usual, I have very little relationship with reality, let alone
  359. this company.
  360.  
  361.     - dbw
  362.  
  363.  
  364. ------------------------------
  365.  
  366. From: twakeman@hpcea.CE.HP.COM (Teriann Wakeman)
  367. Subject: Re: Circuit board layout with penplotter output for Mac?????
  368. Date: 13 Oct 87 17:04:49 GMT
  369. Organization: HP Corporate Engineering - Palo Alto, CA
  370.  
  371. Your best bet for getting the Mac to plot is with a HP plotter (RS232
  372. option for small plotters and any of the big plotters). The best plotter
  373. driver currently available is MacPlotts II from Computer Shoppe in
  374. Greensboro N.C.. has routines for pen changes (read colours). I have
  375. been using MacPlottsII with various HP plotters for about 2 years now (I
  376. use a 512K Mac at work), and have forund it to be an exellent
  377. application. The manual could use some help, but phone call have always
  378. produced cuterous fast help.
  379.  
  380. I have no connection with Computer Shoppe other then as a satisfied
  381. customer and have a connection with HP plotters via a profit sharing
  382. check (buy them HP plotters- good products!!)
  383.  
  384. TeriAnn Wakeman HPMUG co-ordinator
  385.  
  386.  
  387. ------------------------------
  388.  
  389. From: singer@endor.harvard.edu (Richard Siegel)
  390. Subject: Sony 1302 Monitor Adjustments
  391. Date: 14 Oct 87 14:06:25 GMT
  392. Organization: THINK Technologies, Inc., Bedford, MA
  393.  
  394. Well, thanks to info sent to me from the net, I've been able to adjust
  395. my Sony 1302 color monitor so that the shimmering is gone and the edges
  396. are no longer bowed inward. The problem is that the color focus is
  397. wrong; a white line looks as if it's split into a red line and a blue
  398. line, and the red seems to be to the left.
  399.  
  400. There doesn't seem to be an adjustment on the circuit boards; however,
  401. there are magnets on the yoke that adjust the focusing; are these where
  402. I want to do the adjusting? Will I get toasted if I try to adjust the
  403. color focus on the CRT?
  404.  
  405. Does anyone know how to fix this color problem?
  406.  
  407. Thanks in advance...
  408.  
  409.         -_Rich
  410.  
  411.  
  412. ------------------------------
  413.  
  414. From: jayn@oakhill.UUCP (Jay Norwood)
  415. Subject: Curses emulation for Mac
  416. Date: 13 Oct 87 21:16:00 GMT
  417. Organization: Motorola Inc. Austin, Tx
  418.  
  419. moving some c programs from a Sun.  It is not apparent from the Inside
  420. Macintosh volumes how to hilite characters. Jay Norwood
  421.  
  422.  
  423. ------------------------------
  424.  
  425. From: faulkner@scdpyr.UUCP (Bill Faulkner)
  426. Subject: Re: Hypercard again (radio button)
  427. Date: 12 Oct 87 16:54:15 GMT
  428. Organization: Natl Ctr Atmospheric Research, Boulder, CO
  429.  
  430. In article <166@stech.UUCP>, sysop@stech.UUCP (Jan Harrington) writes:
  431.  
  432. > How you handle the highlighting depends on whether you've checked Auto hilight
  433. > when you defined the button.  If Auto hilight is checked (in that dialog box
  434. > you get for buttons), then Hypercard will take care of turning the button on
  435. > and off.  You can check the button's state with something like:
  436. >     if autoHilite of button ID XX is true then
  437. >         .....
  438. > Replace the XX, of course, with the right button ID or ID XX with the button's
  439. > name if the script is attached to something other than the button itself.  If
  440. > the script is attached to the button itself, then you don't need the button
  441. > identifier.    
  442.  
  443. What you said is true, however, you are misleading people.  Both hilite
  444. and autoHilite are properties of a button, but they are vastly
  445. different. Checking the state of autoHilite, tells you nothing about the
  446. button being "on"
  447.  
  448.  
  449. > If Auto hilight isn't selected, then you must attach a script to each button
  450. > which detects mouseup events, checks the current hilite state, and then sets
  451. > the button accordingly:
  452. >     if hilite is true then
  453. >         set hilite false
  454. >     else
  455. >         set hilite true
  456. >     .....
  457. > In most cases, using Auto hilite is certainly easier!
  458.  
  459. NO NO NO NO!  You don't understand radio buttons at all! If you click on
  460. a hilited radio button it should remain on.  And for radio buttons,
  461. Autohilite is NOT the way to proceede.  I know, because I have developed
  462. a stack that uses radio buttons.
  463.  
  464. Now to answer Chuq's question about how to develop radio buttons.
  465.  
  466. First, create the set of buttons that you want to use as a set of radio
  467. buttons and organize them in a logical manner.  Set the Autohilite to
  468. off and show name to on.  Say you have five buttons numbered 1-5.  The
  469. script for button number 1 would be like this:
  470.  
  471. on mouseUp
  472.   set hilite of button 2 to false
  473.   set hilite of button 3 to false
  474.   set hilite of button 4 to false
  475.   set hilite of button 5 to false
  476.   set hilite of button 1 to true
  477.   --
  478.   --  do what ever this button is supposed to do
  479.   -- end mouseUp
  480.  
  481. The other 4 buttons would proceed in a similar fashion, with the script
  482. of button n that turns the hilite of button n to true and all the others
  483. to false.  This will give you the action of standard "radio buttons".
  484. Also note, that due to personal prefence, I will set the hilite of
  485. button n to true after all the other button hilites are set to false. 
  486. This is to prevent seeing 2 radio buttons checked at the same time,
  487. although this time is rather small.  I would rather buttons hilited for
  488. the split second it takes to change all the button's states.
  489.  
  490. True, it is not the most elegant solution to the problem, but it is what
  491. you are stuck with, since hypercard doesn't know about radio buttons
  492. other than they are just another button style.
  493.  
  494.         Bill
  495. -- 
  496. Bill Faulkner * NCAR (Nat'l Center for Atmospheric Research)
  497. PO Box 3000 * Boulder, CO  80307-3000 * 303-497-1259
  498. UUCP:  faulkner@scdpyr.UUCP or  ..!hao!scdpyr!faulkner
  499. INTERNET: faulkner@scdpyr.ucar.edu  ARPA: faulkner%ncar@csnet-relay.arpa
  500.  
  501.  
  502. ------------------------------
  503.  
  504. From: brian@hpfclm.HP.COM (Brian Rauchfuss)
  505. Subject: Re: dialogues during boot?
  506. Date: 12 Oct 87 15:29:16 GMT
  507. Organization: Hewlett-Packard - Fort Collins, CO
  508.  
  509.  
  510.     Why don't you want to clear the startup screen? Anyways, I remember
  511. stepping through some code that did that once and they did all their
  512. drawing without the higher managers, just quickdraw.  They drew their
  513. window with lines, and tested their buttons with PtInRect.
  514.  
  515.     Brian Rauchfuss
  516.  
  517.  
  518. ------------------------------
  519.  
  520. From: ranson@crcge1.UUCP (D. Ranson CNET)
  521. Subject: KMAPs and KCHRs
  522. Date: 13 Oct 87 09:57:56 GMT
  523.  
  524.  
  525. (Before you ask: Yes, I have read TechNote 160)
  526.  How are KMAP ressource REALLY used in System4.1? On a SE, I have found
  527. that KMAP ID 1 in the System file is actually used (You can easily swap
  528. 2 keys), but the Keyboard DA apparently assume a default KMAP. On a
  529. Plus, KMAPs seem to have no effect at all. You can boot from a System4.1
  530. without any KMAP in it! Are KMAPs only for ADB keyboards? Why this
  531. limitation? I suppose the right KMAP is chosen at boot time by comparing
  532. some sort of keyboard ID to the ressource ID. Any info on that? We
  533. French Mac-ers are particularly interested in KMAPs because of a bug in
  534. the "physical mapping" of our keyboards. The raw codes for the keys <
  535. and ` have been swapped between the Plus and the ADB keyboards. Only
  536. KMAPs can cure that if you want a universal System file (Currently, the
  537. recommended System file for a Plus in France is 3.2).
  538.     Daniel Ranson
  539.     ...!seismo!mcvax!inria!{crcge1 or cnetlu}!ranson
  540.  
  541.  
  542. ------------------------------
  543.  
  544. From: tcheng@uiucdcsm.cs.uiuc.edu
  545. Subject: Looking for Common Lisp for the Mac
  546. Date: 13 Oct 87 18:51:00 GMT
  547.  
  548.  
  549. Help!!!
  550.  
  551. I'm looking for the best implementation of COMMON LISP for the the
  552. Mac-Plus. Any -->'s appriciated.
  553.  
  554. Dave Tcheng
  555.  
  556.  
  557. ------------------------------
  558.  
  559. From: bill@utastro.UUCP (William H. Jefferys)
  560. Subject: Bug in Microsoft EXCEL Square Root
  561. Date: 14 Oct 87 14:14:35 GMT
  562. Organization: U. Texas, Astronomy, Austin, TX
  563.  
  564. I have run across a bug in the Microsoft Excel square root function. I
  565. am using Microsoft Excel v. 1.04 on a Mac+. When taking square roots of
  566. numbers in the range [0.999975,0.99999991] I find that there is  a
  567. significant error. The error is discontinuous at the left end: if the 
  568. argument is only 0.999964, the error drops suddenly to zero.
  569.  
  570. To illustrate this I have made up a table with the following columns: In
  571. the first column, x. In the second column, u=1-x*x; in the third 
  572. column, y=sqrt(u), calculated with the Excel square root function. In
  573. the  fourth column, x*x+y*y-1 (should be zero). The calculation was done
  574. in Full Precision mode.
  575.  
  576. In the fifth column I performed a single Newton-Raphson iteration
  577. starting with y, to get a better approximation y' to the square root.
  578. The sixth column is the same as the fourth column, but calculated using
  579. the result of the  Newton-Raphson iteration. The error is much  smaller.
  580.  
  581.   x     u=1-x*x     y=sqrt(u)      x*x+y*y-1    y'=(y+u/y)/2   x*x+y'*y'-1
  582.                     
  583. 0.0001 0.99999999 0.999999995      0          0.999999995       0
  584. 0.0003 0.99999991 0.999999955      1.9984E-15 0.999999955      -1.11E-16
  585. 0.0005 0.99999975 0.999999875      1.5543E-14 0.99999987499999 -1.11E-16
  586. 0.0008 0.99999936 0.99999968       1.0258E-13 0.99999967999995  2.22E-16
  587. 0.001  0.999999   0.9999995        2.5002E-13 0.99999949999987 -1.11E-16
  588. 0.002  0.999996   0.999998         4.0001E-12 0.999997999998    0
  589. 0.003  0.999991   0.9999955        2.025E-11  0.99999549998987  0
  590. 0.004  0.999984   0.999992         6.4002E-11 0.999991999968    0
  591. 0.005  0.999975   0.9999875        1.5625E-10 0.99998749992187  0
  592. 0.006  0.999964   0.999981999838   0          0.999981999838    0
  593. 0.007  0.999951   0.99997549969987 0          0.99997549969987  0
  594.  
  595. This seems to be a Microsoft bug and not a ROM bug, because the same
  596. calculation done in Lightspeed C (which uses SANE) does not produce this
  597. error. Microsoft apparently has their own private square root routine in
  598. EXCEL, and didn't use SANE. Too bad.
  599.  
  600. Until this is fixed in (I hope) Version 1.05 (*please*, Microsoft!!!), 
  601. I recommend using the following macro function SQRTF instead of SQRT:
  602.  
  603. function  SQRTF
  604.           =RESULT(1)
  605.           =ARGUMENT("in",1)
  606.           =SET.NAME("out",SQRT(in))
  607.           =IF(in<>0,SET.NAME("out",0.5*(out+in/out)))
  608.           =RETURN(out)
  609.  
  610. If anyone is interested I can send them the Binhexed spreadsheet. It's
  611. about 4K long.
  612.  
  613. Bill Jefferys
  614.  
  615.  
  616. ------------------------------
  617.  
  618. From: borscht@dartvax.UUCP (Andy J. Williams)
  619. Subject: NetTrek, MazeWars, and Zones
  620. Date: 12 Oct 87 19:52:08 GMT
  621. Organization: Dartmouth College, Hanover, NH
  622.  
  623. Does anyone know of a patch or a way of creating a patch so that
  624. NetTrek, Mazewars+ et al (any appletalk game) can work accross zones on
  625. an Appletalk network?
  626.  
  627. --Andy
  628.  
  629. -- 
  630. Disclaimer: You better like my opinions, my mother can beat up your mother...
  631.  
  632. Andy J. Williams                               borscht@dartmouth.edu
  633. vive spam and borscht!                  {ihnp4,decvax,linus}!dartvax!borscht
  634.  
  635.  
  636. ------------------------------
  637.  
  638. From: jww@sdcsvax.UCSD.EDU (Joel West)
  639. Subject: Re: Mac II Production Stopped?
  640. Date: 14 Oct 87 13:55:38 GMT
  641. Organization: Palomar Software, Inc., Vista, CA
  642.  
  643. I heard a rumor that there will be a new ROM in a month or two. No
  644. reading on its accuracy.
  645. -- 
  646.     Joel West  (c/o UCSD)
  647.     Palomar Software, Inc., P.O. Box 2635, Vista, CA  92083
  648.     {ucbvax,ihnp4}!sdcsvax!jww     jww@sdcsvax.ucsd.edu
  649. So. California: where the ground does the Rocking 'N Rolling for you
  650.  
  651. ------------------------------
  652.  
  653. End of Usenet Mac Digest
  654. ************************
  655.